import Vue from 'vue'
import Vuex from 'vuex'

import app from './modules/app'
import i18n from './modules/i18n'
import auth from './modules/auth'
import user from './modules/user'
import application from './modules/application'
import message from './modules/message'
import structure from './modules/structure'
import helper from './modules/helper';


// dynamic router permission control (Experimental)
// import permission from './modules/async-router'
import getters from './getters'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    app,
    i18n,
    auth,
    user,
    application,
    message,
    structure,
    helper
  },
  state: {},
  mutations: {},
  actions: {},
  getters
})
